﻿<%@ Page Language="C#" MasterPageFile="~/Controls/AdminPage.master" AutoEventWireup="true" CodeFile="Employees.List.aspx.cs" Inherits="Pages_Hr_Employees_List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<article>
	<asp:Label ID="lblTtitle" runat="server" Text="Danh sách nhân viên" CssClass="title"></asp:Label>
	<br /><br />
	<form>
			<div>
	            <asp:DropDownList ID="drpDepartment" DataTextField="Alias" DataValueField="DepartmentID" runat="server">
	            </asp:DropDownList>
	            <asp:DropDownList ID="drpContractType" DataTextField="Name" DataValueField="TypeID" runat="server">
	            </asp:DropDownList>
			    <asp:Button ID="btView" runat="server" CssClass="button" OnClick="btView_Click" Text="Xem"></asp:Button>
			    <br /><br />
			</div>
		<table id="table1" class="gtable">
			<thead>
				<tr>
					<th>TT</th>
					<th style="width:150px">Họ tên</th>
					<th>Phòng ban</th>
					<th>Ngày sinh</th>
					<th>Email</th>
					<th>Di động</th>
					<th>Hợp đồng</th>
					<th>Ảnh đại diện</th>
				</tr>
			</thead>
			<tbody>
			    <asp:Repeater ID="rptList" runat="server">
			    <ItemTemplate>
				    <tr>
					    <td><%#Eval("rownumber")%></td>
					    <td><a href="<%=Constant.ADMIN_PATH %><%=Resources.Url.EmployeesEdit %>?id=<%#Eval("EmployeeID") %>&u=<%=HttpUtility.UrlEncode(Request.Url.ToString()) %>"><%#Eval("LastName")%> <%#Eval("FirstName")%></a></td>
					    <td><%#Eval("DepartmentName")%></td>
					    <td><%# Eval("Birthday", "{0:dd-MM-yyyy}")%></td>
					    <td><%#Eval("Email")%></td>
					    <td><%#Eval("Mobile")%></td>
					    <td><%#Eval("ContractName")%></td>
					    <td><asp:Image ID="imgAvatar" Height="80" ImageUrl='<%# ImgUrl(Eval("Avatar").ToString())%>' runat="server"></asp:Image> </td>
				    </tr>
			    </ItemTemplate>
			    </asp:Repeater>
			</tbody>
		</table>
			<div class="pagination">
			    Page:
			    <asp:DropDownList ID="drpPage" runat="server">
			        <asp:ListItem>1</asp:ListItem>
			        <asp:ListItem>2</asp:ListItem>
			    </asp:DropDownList>
			    Size:
			    <asp:DropDownList ID="drpPageSize" runat="server">
			        <asp:ListItem>5</asp:ListItem>
			        <asp:ListItem>10</asp:ListItem>
			        <asp:ListItem Selected="True">20</asp:ListItem>
			        <asp:ListItem>30</asp:ListItem>
			        <asp:ListItem>50</asp:ListItem>
			    </asp:DropDownList>
			    <asp:Label ID="lblTotal" runat="server" Text="(0)"></asp:Label>
			    <asp:Button ID="btPage" CssClass="button small" runat="server" Width="50px" OnClick="btPage_Click" Text="Chuyển"></asp:Button>
			</div>
	</form>
</article>
</asp:Content>

